package com.fangtao.service;

import com.fangtao.dao.RoleDAO;
import com.fangtao.domain.Role;

import java.util.List;

/**
 * @ClassName RoleService
 * @Description TODO
 * @date 2022/9/24 19:40
 * @author: fangtao
 * @Version 1.0
 */
public class RoleService {
    private RoleDAO roleDAO=new RoleDAO();
    //返回role表的全部数据
    public List<Role>ListRole(){
        String sql="select * from smbms_role ;";
        return roleDAO.queryMulti(sql, Role.class);
    }
}
